#include "testApp.h"

//--------------------------------------------------------------
void testApp::setup(){

    circ1 = circle(100, 200, 200, 255, 0, 0);
    circ2 = circle(50, 300, 300, 0, 0, 255);
    
    rect1 = rectangle(40, 80, 500, 600, 0, 255, 0);
    
    circ1.vel.set(0, 0.1);
    circ2.vel.set(0.1, 0);
    
    rect1.vel.set(-0.1, 0);
}

//--------------------------------------------------------------
void testApp::update(){

    circ1.update();
    circ2.update();
    
    rect1.update();
}

//--------------------------------------------------------------
void testApp::draw(){
    circ1.display();
    circ2.display();
    
    rect1.display();
}

//--------------------------------------------------------------
void testApp::keyPressed(int key){

}

//--------------------------------------------------------------
void testApp::keyReleased(int key){

}

//--------------------------------------------------------------
void testApp::mouseMoved(int x, int y ){

}

//--------------------------------------------------------------
void testApp::mouseDragged(int x, int y, int button){

}

//--------------------------------------------------------------
void testApp::mousePressed(int x, int y, int button){

}

//--------------------------------------------------------------
void testApp::mouseReleased(int x, int y, int button){

}

//--------------------------------------------------------------
void testApp::windowResized(int w, int h){

}

//--------------------------------------------------------------
void testApp::gotMessage(ofMessage msg){

}

//--------------------------------------------------------------
void testApp::dragEvent(ofDragInfo dragInfo){ 

}